<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Grid Layout Test: Content Distribution and the track sizing algorithm</title>
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-grid/#grid-align">
<link rel="help" href="https://drafts.csswg.org/css-align/#content-distribution">
<link rel="help" href="https://drafts.csswg.org/css-align/#valdef-align-content-space-around">
<link rel="stylesheet" href="../../support/alignment.css">
<meta name="flags" content="ahem">
<meta name="assert" content="Content Distribution offset doesn't account for tracks with non-spanning items.">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.grid {
  display: inline-grid;
  background: grey;
  grid-template-columns: 100px;
  font: 20px/1 Ahem;
  width: 200px;
}
.item1 {
  background: green;
  grid-column: 1;
  grid-row: 1;
}
.item2 {
  background: blue;
  grid-column: 1;
  grid-row: 2;
}
</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<script type="text/javascript">
  setup({ explicit_done: true });
</script>

<body onload="document.fonts.ready.then(() => { checkLayout('.grid'); })">
    <div class="grid justifyContentSpaceAround" data-expected-width="200" data-expected-height="60">
        <div class="item1" data-expected-width="100" data-expected-height="40">XXXX XXX</div>
        <div class="item2" data-expected-width="100" data-expected-height="20">XXX</div>
    </div>
</body>
